package com.ocl.www.mapper;

import com.ocl.www.domain.Letter;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * Created by Administrator on 2016/12/1.
 */

@Mapper
public interface LetterMapper {

    //添加一条私信信息
    Integer insertLetter(Letter letter)throws  Exception;

    int selectNewLetter()throws  Exception;

    //查询给我的未读的私信
    List<Letter> selectLettersWithReciverId(Letter letter)throws  Exception;

    //设置私信为已读：isread = 1
    Integer updateLetterOfIsread(Letter letter)throws  Exception;
}
